ScxV6Server.LookupObject Method
Locates a database object by its identifier and returns an ScxV6Object object representing the object.
Parameters
- ID
The identifier of the object to locate.
Remarks
Locates an object in the database via its unique identifier. Returns nothing if the object cannot be found.
The following example written in VB.NET gets the object with ID 72724 and prints is full name to the console.
Dim Svr As ScxV6DbClient.ScxV6Server
' Connect to the server
Svr = New ScxV6DbClient.ScxV6Server
Svr.Connect("MAIN", "", "")
Dim Obj As ScxV6DbClient.ScxV6Object
Obj = Svr.LookupObject(72724)
Console.WriteLine("The name of the object is ""{0}""", Obj.FullName)
' Disconnect
Svr.Disconnect()
This produces the following output:
The name of the object is "Group.Sub-Group.New Analogue Point"